import request from '@/utils/request'

export default {
  // 批量修改业务员
  editSalesman(data) {
    return request({
      url: `/v1/shop/edit-salesman`,
      method: 'post',
      data
    })
  },
   // 修改默认品牌
   editBrand(data) {
    return request({
      url: `/v1/shop/edit-brand`,
      method: 'post',
      data
    })
  },
  // 删除店铺
  delete(data) {
    return request({
      url: `/v1/shop/delete`,
      method: 'post',
      data
    })
  },
  // 启用/禁用
  status(data) {
    return request({
      url: `/v1/shop/status`,
      method: 'post',
      data
    })
  },
  // 查看完整注册信息
  getRegister(params) {
    return request({
      url: `/v1/shop/register-info`,
      method: 'get',
      params
    })
  },
  // 查看完整注册信息
  getCredit(params) {
    return request({
      url: `/v1/shop/credit-card`,
      method: 'get',
      params
    })
  },
  // 查看收款卡信息
  getCollect(params) {
    return request({
      url: `/v1/shop/collect-card`,
      method: 'get',
      params
    })
  },
  // 平台
  platforms(params) {
    return request({
      url: `v1/shop/platforms`,
      method: 'get',
      params
    })
  },
  // 批量修改拉单信息
  editOrder(data) {
    return request({
      url: `/v1/shop/edit-pull-order`,
      method: 'post',
      data
    })
  },
}
